package com.org.mapper;

import com.org.entity.Userinfo;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;

/**
* @author Rainy-Heights
* @description 针对表【userinfo】的数据库操作Mapper
* @createDate 2023-03-08 10:21:45
* @Entity com.org.entity.Userinfo
*/
public interface UserinfoMapper {
    @Delete("delete * from renjiancihua.userinfo where id=#{id}")
    int deleteByPrimaryKey(Long id);

    @Insert("insert into renjiancihua.userinfo(name,gender) values(#{name},#{gender})")
    int insert(Userinfo record);//直接通过对象插入数据

    int insertSelective(Userinfo record);

    Userinfo selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Userinfo record);

    int updateByPrimaryKey(Userinfo record);

}
